#include "SessionManager.h"
#include "FileTransferTcpClientSession.h"

int main()
{
	cout<<"start the main client test process "<<getpid()<<endl;

	SessionManager smgr;
	FileTransferTcpClientSession cli_session1("127.0.0.1", 10001,
											  "127.0.0.1", 9001,
											  "", "jinchang_send.jpg");
	smgr.add_cli_session(0, &cli_session1);
/*	FileTransferTcpClientSession cli_session2("127.0.0.1", 10002,
												 "127.0.0.1", 9001);
	smgr.add_cli_session(1, &cli_session2);
	FileTransferTcpClientSession cli_session3("127.0.0.1", 10003,
													 "127.0.0.1", 9001);
	smgr.add_cli_session(2, &cli_session3);
	FileTransferTcpClientSession cli_session4("127.0.0.1", 10004,
													 "127.0.0.1", 9001);
	smgr.add_cli_session(3, &cli_session4);*/



	smgr.start_cli_session(0);
//	smgr.start_cli_session(1);
//	smgr.start_cli_session(2);
//	smgr.start_cli_session(3);

	while(1) {}

	cout<<"the main client_test process "<<getpid()<<" exit."<<endl;
	return 0;
}
